<?php

/*
 * This is to create new task.
 */
echo $_POST['tname'].'<br>'.$_POST['tdetail'].'<br>'.date('Y-m-d', strtotime($_POST['start_date'])).'<br>'.$_POST['end_date'];

include '../../include/config.php';
$query = mysql_query("insert into baby_personal_agenda (`sr`,`bid`,`task_name`,`task_detail`,`start_date`,`end_date`,`status`) values (NULL,'".$_COOKIE['bid']."','".$_POST['tname']."','".$_POST['tdetail']."','".date('Y-m-d', strtotime($_POST['start_date']))."','".date('Y-m-d', strtotime($_POST['end_date']))."','1')") or die(mysql_error() );
echo 'inserted';
$rl = '../view/Personal_Agenda';
header("Location:$rl");
?>
